#!/usr/bin/env bash
# You'll want the inotifywait-tools package..
# This script is no very reliable.. but I was using it for testing.

IN=/home/cjb/qsstv/rx_sstv

inotifywait -m ${IN} -e create -e moved_to | \
    while
	read dir action file
    do
	ls -l $dir/$file
	mogrify -strip +repage $dir/$file
	zbarimg -q $dir/$file
    done
